home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / cenvid9.zip / REBOOT_1.BAT < prev    next >
DOS Batch File  |  1994-03-04  |  1KB  |  27 lines

  1. @echo off
  2. REM *****************************************************************
  3. REM *** Reboot_1.bat - Reboot computer by jumping calling the     ***
  4. REM *** ver.1          boot interrupt 0x19. To provide protection ***
  5. REM ***                from accidentaly rebooting, you must enter ***
  6. REM ***                PLEASE as the first parameter.             ***
  7. REM *****************************************************************
  8.  
  9.  
  10. REM **************************************************************
  11. REM *** Check that "PLEASE" is the first parameter.  CEnvi     ***
  12. REM *** return errorlevel if it is not please.                 ***
  13. REM **************************************************************
  14. CEnvi return( strcmpi("%1","Please") ? 1 : 0 )
  15. if errorlevel 1 GOTO PLEASE
  16.  
  17.  
  18. REM ***************************************************
  19. REM *** Interrupt 0x19 is provided for a warm boot. ***
  20. REM ***************************************************
  21. CEnvi reg.ax = 0; interrupt(0x19,reg);
  22.  
  23.  
  24. :PLEASE
  25. ECHO Reboot_1.bat will reboot your computer.  To execute Reboot.bat you
  26. ECHO must enter: REBOOT_1 PLEASE
  27.